<?php
class Application_Form_MyForm extends Zend_Form {
	public function init() {
		//We'll just add a simple textarea element to the form
		$this->addElement ( 'textarea', 'content', array ('id' => 'txtContent', 'label' => 'Contents' ) );
	}
	
	public function loadDefaultDecorators() {
		foreach ( $this->getElements () as $element ) {
			if ($element->getType () === "Zend_Form_Element_Hidden") {
				$element->setDecorators ( $this->_hiddenElementDecorator );
			}
		}
		
		// Add a decorator prefix path pointing to our new nifty decorator.
		$this->addElementPrefixPath ( 'CU_Form_Decorator', 'forms/decorators', Zend_Form_Element::DECORATOR );
		parent::loadDefaultDecorators ();
	}
}